﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true" CodeFile="CandidateWIP_ReportViewer.aspx.cs" Inherits="Reports_CandidateWIP_ReportViewer" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnableViewState="False" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CandidateWIPTableAdapters.USP_GetCandidateWipByUserIDTableAdapter">
                       <SelectParameters>
                           <asp:ControlParameter ControlID="UserID" DbType="Guid" Name="UserID" PropertyName="Text" />
                           <asp:ControlParameter ControlID="DDLResultStatus" Name="ResultType" PropertyName="SelectedValue" Type="String" />
                           <asp:ControlParameter ControlID="ddlRegion" Name="RegionId" PropertyName="SelectedValue" Type="Int32" />
                           <asp:ControlParameter ControlID="ddlCountry" Name="CountryID" PropertyName="SelectedValue" Type="Int32" />
                       </SelectParameters>
                   </asp:ObjectDataSource>
    <div>
        <table >
            <tr><td colspan="4"><h3>Candidate Result Report</h3></td></tr>
            <tr> <td>Result Status</td><td>
                <asp:DropDownList ID="DDLResultStatus" runat="server">
                    <asp:ListItem Selected="True" Value="PASS">Passed</asp:ListItem>
                    <asp:ListItem Value="FAIL">Failed</asp:ListItem>
                </asp:DropDownList></td>
                <td> </td>
               <td> <asp:Button ID="BtnShowReport" runat="server" Text="ShowReport" OnClick="BtnShowReport_Click" /> 
                  
                   <asp:Label ID="UserID" runat="server" Text="UserID" Visible="False"></asp:Label>
                   <asp:Label ID="RoleID" runat="server" Text="RoleID" Visible="False"></asp:Label>
                </td></tr>
            
            <tr id="trRegion" runat="server"> <td>Region</td><td>
                <asp:DropDownList ID="ddlRegion" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlRegion_SelectedIndexChanged">
                </asp:DropDownList></td>
                <td> </td>
            </tr>
            <tr id="trCountry" runat="server"> <td>Country</td><td>
                <asp:DropDownList ID="ddlCountry" runat="server">
                </asp:DropDownList></td>
                <td> </td>
            </tr>
        </table>
    </div>
    <div>
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="90%"></rsweb:ReportViewer>
    </div>
</asp:Content>

